﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;

namespace Pear.Core.SeedData
{
    /// <summary>
    /// 文章分类表种子数据 <see cref="ArticleType"/>
    /// </summary>
    public class ArticleTypeSeedData : IEntitySeedData<ArticleType>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<ArticleType> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
               new ArticleType()
               {
                    Id = 1, TypeName = ".NET Core", Describe = "简单说明 无意义！！！"
               },
               new ArticleType()
               {
                    Id = 2, TypeName = "Docker", Describe = "简单说明 无意义！！！"
               },
               new ArticleType()
               {
                    Id = 3, TypeName = "My Sql", Describe = "简单说明 无意义！！！"
               },
               new ArticleType()
               {
                    Id = 4, TypeName = "个性随笔", Describe = "简单说明 无意义！！！"
               },
            };
        }
    }
}